package com.work.framework.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * 通知表
 */
@TableName("notice")
public class Notice implements Serializable {

  @TableId(value = "nid", type = IdType.AUTO)
  private Integer nid;        //通知表（主键）
  private Integer sUid;       //发送方用户编号
  private Integer rUid;       //接收方用户编号
  private Integer mType;      //消息类型（1.私聊 2.通知）
  private String mes;         //消息内容
  private Integer status;     //消息状态（0.不可见 1.未读 2.已读）
  private String mTime;       //消息时间
  private String lUrl;        //跳转地址
  private Integer flage;      //软删除

  public Notice(Integer sUid, Integer rUid, Integer mType, String mes, Integer status, String mTime, String lUrl) {
    this.sUid = sUid;
    this.rUid = rUid;
    this.mType = mType;
    this.mes = mes;
    this.status = status;
    this.mTime = mTime;
    this.lUrl = lUrl;
  }

  public Notice() {
  }

  public Integer getNid() {
    return nid;
  }

  public void setNid(Integer nid) {
    this.nid = nid;
  }


  public Integer getSUid() {
    return sUid;
  }

  public void setSUid(Integer sUid) {
    this.sUid = sUid;
  }


  public Integer getRUid() {
    return rUid;
  }

  public void setRUid(Integer rUid) {
    this.rUid = rUid;
  }


  public Integer getMType() {
    return mType;
  }

  public void setMType(Integer mType) {
    this.mType = mType;
  }


  public String getMes() {
    return mes;
  }

  public void setMes(String mes) {
    this.mes = mes;
  }


  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }


  public String getMTime() {
    return mTime;
  }

  public void setMTime(String mTime) {
    this.mTime = mTime;
  }


  public String getLUrl() {
    return lUrl;
  }

  public void setLUrl(String lUrl) {
    this.lUrl = lUrl;
  }


  public Integer getFlage() {
    return flage;
  }

  public void setFlage(Integer flage) {
    this.flage = flage;
  }

  @Override
  public String toString() {
    return "Notice{" +
            "nid=" + nid +
            ", sUid=" + sUid +
            ", rUid=" + rUid +
            ", mType=" + mType +
            ", mes='" + mes + '\'' +
            ", status=" + status +
            ", mTime='" + mTime + '\'' +
            ", lUrl='" + lUrl + '\'' +
            ", flage=" + flage +
            '}';
  }
}
